Run rosetta tests against local kava network #69
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
PR adds a new CI workflow:
Run Tests Against Local Kava Network
, which is run on everyrosetta-kava
commit. In the future it will be run on everykava
commit as well.A new CI workflow is based on already existing CI workflow: https://github.com/Kava-Labs/rosetta-kava/blob/master/.github/workflows/ci.yml. Main difference that new CI workflow is fully automated and run against local kava network, while old workflow requires manual intervention and run against testnet or mainnet.
New workflow consists of the following steps:
rosetta-kava
, one in online mode, another in offline modeNOTE: all tests are executed against local kava-node
Implementation details
Configuration files
PR adds a new folder
rosetta-cli-conf/kava-localnet-ci
which was created based onrosetta-cli-conf/kava-testnet-ci
.Main changes are:
start where it last left off
functionalityScripts
PR adds a new folder
.github/scripts/kava-localnet-ci
, which contains 3 scripts:setup.sh
- starts 2 instances of rosetta-kavaconstruction.sh
- runs check:constructioncli.sh
- runs check:dataNewly added scripts are based on already existing ones: https://github.com/Kava-Labs/rosetta-kava/tree/master/.github/scripts and modified to work with local kava network.
Questions
check:data
we run it against latest 10 blocks, should we adjust this number?Follow-up PRs: